\hypertarget{classduye_1_1_thread_task}{\section{duye\-:\-:Thread\-Task Class Reference}
\label{classduye_1_1_thread_task}\index{duye\-::\-Thread\-Task@{duye\-::\-Thread\-Task}}
}


thread base class, be inherited by user  




{\ttfamily \#include $<$duye\-\_\-thread.\-h$>$}

Inheritance diagram for duye\-:\-:Thread\-Task\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classduye_1_1_thread_task}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classduye_1_1_thread_task_a4e70c7dd2d345daf5b175d70ddd897a6}{Thread\-Task} (const bool auto\-Rel=true)
\begin{DoxyCompactList}\small\item\em constructor  \mbox{[}in\mbox{]} auto\-Rel \-: whether is detached with main thread, default is detached \end{DoxyCompactList}\item 
bool \hyperlink{classduye_1_1_thread_task_ae386cc1b68d6cdeea15a05b8ecd70785}{start\-Task} (const bool auto\-Rel=true)
\begin{DoxyCompactList}\small\item\em startup thread \end{DoxyCompactList}\item 
bool \hyperlink{classduye_1_1_thread_task_a6e46695b3a1706db81181d886751cc4f}{join} ()
\begin{DoxyCompactList}\small\item\em join \end{DoxyCompactList}\item 
uint64 \hyperlink{classduye_1_1_thread_task_a1876d8ffd4edce0851b88f52b7451377}{thread\-Id} () const 
\begin{DoxyCompactList}\small\item\em get thread I\-D \end{DoxyCompactList}\item 
virtual bool \hyperlink{classduye_1_1_thread_task_acf1781862945529c7008a679b7e07f2b}{run} ()=0
\begin{DoxyCompactList}\small\item\em thread entry function \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
thread base class, be inherited by user 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classduye_1_1_thread_task_a4e70c7dd2d345daf5b175d70ddd897a6}{\index{duye\-::\-Thread\-Task@{duye\-::\-Thread\-Task}!Thread\-Task@{Thread\-Task}}
\index{Thread\-Task@{Thread\-Task}!duye::ThreadTask@{duye\-::\-Thread\-Task}}
\subsubsection[{Thread\-Task}]{\setlength{\rightskip}{0pt plus 5cm}duye\-::\-Thread\-Task\-::\-Thread\-Task (
\begin{DoxyParamCaption}
\item[{const bool}]{auto\-Rel = {\ttfamily true}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [explicit]}}}\label{classduye_1_1_thread_task_a4e70c7dd2d345daf5b175d70ddd897a6}


constructor  \mbox{[}in\mbox{]} auto\-Rel \-: whether is detached with main thread, default is detached 

\begin{DoxyNote}{Note}

\end{DoxyNote}


\subsection{Member Function Documentation}
\hypertarget{classduye_1_1_thread_task_a6e46695b3a1706db81181d886751cc4f}{\index{duye\-::\-Thread\-Task@{duye\-::\-Thread\-Task}!join@{join}}
\index{join@{join}!duye::ThreadTask@{duye\-::\-Thread\-Task}}
\subsubsection[{join}]{\setlength{\rightskip}{0pt plus 5cm}bool duye\-::\-Thread\-Task\-::join (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_thread_task_a6e46695b3a1706db81181d886751cc4f}


join 

\begin{DoxyReturn}{Returns}
true/false 
\end{DoxyReturn}
\hypertarget{classduye_1_1_thread_task_acf1781862945529c7008a679b7e07f2b}{\index{duye\-::\-Thread\-Task@{duye\-::\-Thread\-Task}!run@{run}}
\index{run@{run}!duye::ThreadTask@{duye\-::\-Thread\-Task}}
\subsubsection[{run}]{\setlength{\rightskip}{0pt plus 5cm}virtual bool duye\-::\-Thread\-Task\-::run (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [pure virtual]}}}\label{classduye_1_1_thread_task_acf1781862945529c7008a679b7e07f2b}


thread entry function 

\begin{DoxyReturn}{Returns}
true/false 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}


Implements \hyperlink{classduye_1_1_runnable_a42e2ba84c4128bda197a64f253c4bbcd}{duye\-::\-Runnable}.



Implemented in \hyperlink{classduye_1_1_hcn_server_a5173895f740fdb637bf6dfb779ce2bba}{duye\-::\-Hcn\-Server}.

\hypertarget{classduye_1_1_thread_task_ae386cc1b68d6cdeea15a05b8ecd70785}{\index{duye\-::\-Thread\-Task@{duye\-::\-Thread\-Task}!start\-Task@{start\-Task}}
\index{start\-Task@{start\-Task}!duye::ThreadTask@{duye\-::\-Thread\-Task}}
\subsubsection[{start\-Task}]{\setlength{\rightskip}{0pt plus 5cm}bool duye\-::\-Thread\-Task\-::start\-Task (
\begin{DoxyParamCaption}
\item[{const bool}]{auto\-Rel = {\ttfamily true}}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_thread_task_ae386cc1b68d6cdeea15a05b8ecd70785}


startup thread 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em auto\-Rel} & \-: whether is detached from main thread, default is detached \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true/false 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}
\hypertarget{classduye_1_1_thread_task_a1876d8ffd4edce0851b88f52b7451377}{\index{duye\-::\-Thread\-Task@{duye\-::\-Thread\-Task}!thread\-Id@{thread\-Id}}
\index{thread\-Id@{thread\-Id}!duye::ThreadTask@{duye\-::\-Thread\-Task}}
\subsubsection[{thread\-Id}]{\setlength{\rightskip}{0pt plus 5cm}uint64 duye\-::\-Thread\-Task\-::thread\-Id (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classduye_1_1_thread_task_a1876d8ffd4edce0851b88f52b7451377}


get thread I\-D 

\begin{DoxyReturn}{Returns}
thread I\-D 
\end{DoxyReturn}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Z\-:/duye/src/duyebase/system/\hyperlink{duye__thread_8h}{duye\-\_\-thread.\-h}\end{DoxyCompactItemize}
